package com.njy.aop.test;

public class RBNode<T extends Comparable<T>, D> {
    public Boolean color;//节点颜色
    public T key;//键值
    public D data;//具体的数据
    public RBNode<T, D> parent;
    public RBNode leftChild;
    public RBNode rightChild;


    public RBNode(Boolean col, T key, D data, RBNode parent, RBNode leftChild, RBNode rightChild) {
        this.color = col;
        this.key = key;
        this.data = data;
        this.parent = parent;
        this.leftChild = leftChild;
        this.rightChild = rightChild;

    }
}
